package com.jic.member.api.rest;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.request.MeinformationRequest;
import com.jic.member.response.MeinformationResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "jic-member",path = "/information")
public interface MemberInformationApi {

    @PostMapping("/queryMemberInformationList")
    RestResult<PageResult<MeinformationResponse>> getMemberInfoList(@RequestBody MeinformationRequest meinformationRequest);

    @PostMapping("/deleteMemberInformation")
    RestResult<String> deleteMemberInformation(@RequestBody MeinformationRequest meinformationRequest);

    @PostMapping("/insertMemberInformation")
    RestResult<String> insertMemberInformation(@RequestBody MeinformationRequest meinformationRequest);

    @PostMapping("/updateMemberInformation")
    RestResult<String> updateMemberInformation(@RequestBody MeinformationRequest meinformationRequest);
}
